﻿using System;

namespace InterfaceToCreate
{
    class Program
    {
        static void Main(string[] args)
        {
            Student S = new Student();
            S.ID = 2020110;
            S.Name = "田敢敢";
            Console.WriteLine($"姓名: {S.Name},ID: {S.ID}");
        }
        interface IUnique<Tid>
        {
            Tid ID { get; set; }

        }
        class Student : IUnique<ulong>//ulong可以自动判断输入类型并且自动转换成需要的类型
        {
            public ulong ID { get; set; }
            public string Name { get; set; }
        }


    }
}
